﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using IBll;
using Model;
using MvcOa.Helper;

namespace MvcOa.Logic
{
    public class HomeController:Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult List()
        {
            List<Permission> list = OperationContext.Current.IBllSession.IPermissionBll.GetListBy(m => m.pIsDel == false).ToList();
            return View(list);
        }
    }
}
